import { paramsToProps, AppRouteRecordRaw } from '@fssc/admin';

const Layout = () => import('../../router/layout.vue');

export default [
  {
    path: '/dashboard',
    component: Layout,
    meta: {
      title: '首页',
      noAuth: true,
      hidden: true,
      breadcrumb: false,
      icon: 'menu-home',
      sort: 1,
    },
    name: 'Dashboard',
    redirect: { name: 'DashboardIndex' },
    children: [
      {
        path: 'index',
        name: 'DashboardIndex',
        component: () => import('@/views/dashboard/index.vue'),
        meta: {
          title: '首页',
          affix: false,
          noAuth: true,
          hidden: false,
          breadcrumb: false,
          icon: 'menu-home'
        },
        props: paramsToProps,
      },
    ],
  },
] as unknown as AppRouteRecordRaw[];
